package com.kla.power.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.kla.power.vo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * <p>
 * 工单通知
 * </p>
 *
 * @author WuZH
 * @since 2023-06-24
 */
@Data
@TableName ( "notice_info" )
@ApiModel ( value = "NoticeEntity对象", description = "工单通知" )
public class NoticeEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty ( "通知ID" )
    @TableId ( value = "id", type = IdType.INPUT )
    private String id;

    @ApiModelProperty ( "用户id" )
    @TableField ( "userId" )
    private String userId;

    @ApiModelProperty ( "工单id" )
    @TableField ( "taskId" )
    private String taskId;

    @ApiModelProperty ( "是否已读,0未读,1已读" )
    @TableField ( "isRead" )
    private Integer isRead;

    @TableField ( "createTime" )
    private Date createTime;

    @TableField ( "changeTime" )
    private Date changeTime;

    @TableField ( "isUsed" )
    private Integer isUsed;

}
